tar xf ${DOWNLOADDIR}/sqlite-3.50.4.tar.gz -C ${BUILDDIR}
pushd ${BUILDDIR}/sqlite-version-3.50.4
    ./configure --prefix=/usr --libdir=/usr/lib64 \
                --build=${CROSS_HOST} --host=${CROSS_TARGET} \
                --enable-fts5 --soname=legacy \
                CPPFLAGS="-DSQLITE_ENABLE_FTS3=1 \
                          -DSQLITE_ENABLE_FTS4=1 \
                          -DSQLITE_ENABLE_COLUMN_METADATA=1 \
                          -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
                          -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
                          -DSQLITE_SECURE_DELETE=1 \
                          -DSQLITE_ENABLE_FTS3_TOKENIZER=1"
    make ${JOBS}
    make DESTDIR=${SYSDIR}/sysroot install
    rm -v ${SYSDIR}/sysroot/usr/lib64/libsqlite3*.la
popd
